import Cookies from "js-cookie";
const TOKEN = "token";
const USERID = "userId"
const CHANNELID = "channelId"
const MOBILE = "mobile"
//存储token
export function setToken(token) {
  Cookies.set(TOKEN, token);
}

export function getToken() {
  return Cookies.get(TOKEN);
}
export function setUserId(userId) {
    Cookies.set(USERID, userId);
}

export function getUserId() {
    return Cookies.get(USERID);
}
export function setChannelId(channelId) {
    Cookies.set(CHANNELID, channelId);
}

export function getChannelId() {
    return Cookies.get(CHANNELID);
}

export function setMobile(mobile) {
    Cookies.set(MOBILE, mobile);
}

export function getMobile() {
    Cookies.get(MOBILE);
}
